package com.zuorenke.vertx.verticle;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Vertx;

/**
 * @author Z.R.K
 * @description
 * @create 2019-05-22 10:30:58
 **/
public class BaseVerticle extends AbstractVerticle {
	@Override
	public void start() throws Exception {
		vertx.createHttpServer().requestHandler(req -> {
			req.response().end("hello Vert.x");
		}).listen(8989);
	}
	
	public static void main(String[] args) {
		Vertx.vertx().deployVerticle(BaseVerticle.class.getName());
	}
}
